package com.panshi.qa.provider.modules.domain;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="QaQuestionSystem", description="")
public class QaQuestionSystem implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "问答问题表ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "作者ID")
    private Long userId;

    @ApiModelProperty(value = "作者昵称")
    private String nickname;

    @ApiModelProperty(value = "问题类型ID")
    private Long typeId;

    @ApiModelProperty(value = "问题类型名称")
    private String name;

    @ApiModelProperty(value = "问题标题")
    private String question;

    @ApiModelProperty(value = "问题背景(内容)")
    private String content;

    @ApiModelProperty(value = "图片地址")
    private String photoPath;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "发布时间")
    @TableField(fill = FieldFill.INSERT)
    private Date publishTime;

    @ApiModelProperty(value = "回答数")
    private Integer answerNum;

    @ApiModelProperty(value = "阅读数")
    private Integer readNum;

    @ApiModelProperty(value = "收藏数")
    private Integer collectNum;

    @ApiModelProperty(value = "状态;0-下架,1-上架")
    private Integer state;

}
